package javax.wireless.messaging;

import java.util.Date;

public class TextMessageImpl implements TextMessage {
    protected String url;

    protected String data;

    protected long timeStamp;

    public TextMessageImpl(String paramString1, String paramString2) {
        this.data = paramString2;
        this.url = paramString1;
        this.timeStamp = System.currentTimeMillis();
    }

    public String getPayloadText() {
        return this.data;
    }

    public void setPayloadText(String paramString) {
        this.data = paramString;
    }

    public String getAddress() {
        return this.url;
    }

    public void setAddress(String paramString) {
        this.url = paramString;
    }

    public Date getTimestamp() {
        return new Date(this.timeStamp);
    }
}
